-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: code style simplify #6241
Conversation
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6241.surge.sh |
if 的不要挪掉哈,这样会让覆盖率看起来很高实际上代码没跑到。箭头函数优化可以留~ |
src/components/calendar/convert.ts
Outdated
if (Array.isArray(value)) { | ||
return value | ||
} | ||
if (Array.isArray(value)) return value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原来的写法是更好的格式。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗦嘎~
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature #6241 +/- ##
===========================================
+ Coverage 90.75% 91.03% +0.27%
===========================================
Files 305 305
Lines 6601 6583 -18
Branches 1644 1643 -1
===========================================
+ Hits 5991 5993 +2
+ Misses 562 544 -18
+ Partials 48 46 -2
☔ View full report in Codecov by Sentry. |
把 if 语法风格统一了一下,只有一行代码的省略了花括号
删了一些时间久的注释属性
简化了一下箭头函数的 return